@echo off
if "%ProgramFiles(x86)%"=="" goto :32bit

:64bit
	echo 64bit
	set INSTALL=%SystemRoot%\Microsoft.Net\Framework64\v2.0.50727\InstallUtil.exe
	goto :endif

:32bit
	echo 32bit
	set INSTALL=%SystemRoot%\Microsoft.Net\Framework\v2.0.50727\InstallUtil.exe
	goto :endif

:endif
SET LMCMDLET= %cd%\..\LmCmdLetLib\bin\release\LMCmdLetLib.dll
echo %INSTALL%
echo %LMCMDLET%
powershell.exe -File remove-snapin.ps1
%INSTALL% /u %LMCMDLET%
powershell.exe -command "Get-PSSnapin -registered"
pause
